<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;

/**
 * @mixin \think\Model
 */
class Title extends BaseModel
{
    //
    public function getTypeAttr($v){
        switch ($v) {
            case 0:
                $v = '单选题';
                break;
            case 1:
                $v = '多选题';
                break;
            case 2:
                $v = '判断题';
                break;
        }
        return $v;
    }
}
